/*
 * @Description: 
 * @Autor: HuiSir<273250950@qq.com>
 * @Date: 2024-8-8 15:22:30
 * @LastEditTime: 2024-8-8 16:30:24
 */
import Request from "./request.js";

// 打赏信息
export const getSupportMeta = (postId) => {
  return Request.get(`/theme_doubt/support/${postId}`);
}

// 社交信息
export const getSocialMeta = (postId) => {
  return Request.get(`/theme_doubt/social/${postId}`);
}

// 更新点赞分享
export const updateSocialMeta = (postId, metaKey, num = 1) => {
  return Request.post("/theme_doubt/social/update", {
    postId,
    metaKey,
    num,
  });
};